interface Sounds {
	void sound();
}

class A {
	public void sound(){
		System.out.println("haha");
	}
}

class B implements Cloneable {
	public void sound(){
		System.out.println("haha");
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}

class Test {
	public static void main(String[] args) throws Exception{
		B s=new B();
		s=(B)s.clone();
		s.sound();
	}
}
